<?php header('Content-Type: text/xml');  echo '<?xml version="1.0" encoding="utf-8" ?>';?>
<root>
    <result>
        <?php 
        if(isset($this->result)){
            echo $this->result;
        }
        ?>
    </result>
    <data>
        <?php 
        echo $this->partial('layout_result-xml-data.phtml', array(
            'data' => $this->data,
        ));
        ?>
    </data>
    <messages>
    <![CDATA[
        <?php 
        if(isset($this->layout()->messages)){
            echo $this->layout()->messages;
        }
        ?>
    ]]>
    </messages>
    <content>
    <![CDATA[
        <?php 
        if(isset($this->layout()->content)){
            echo $this->layout()->content;
        }
        ?>
    ]]>
    </content>
</root>